export interface msgProps {
  errcode: number;
  errmsg: string;
  invaliduser: string;
  invalidparty: string;
  invalidtag: string;
}

export interface textMsgProps {
  touser?: string;
  toparty?: string;
  totag?: string;
  msgtype: string;
  agentid: number;
  text: {
    content: string;
  };
  safe?: number;
  enable_id_trans?: number;
  enable_duplicate_check?: number;
  duplicate_check_interval?: number;
}

// export interface miniMsgProps {
//   touser?: string;
//   toparty?: string;
//   totag?: string;
//   msgtype: string;
//   miniprogram_notice: {
//     appid: string;
//     page?: string;
//     title: string;
//     description?: string;
//     emphasis_first_item?: boolean;
//     content_item: Array<keyValueProps>;
//   };
//   enable_id_trans?: number;
//   enable_duplicate_check?: number;
//   duplicate_check_interval?: number;
// }

export interface miniMsgProps {
  touser?: string;
  toparty?: string;
  totag?: string;
  msgtype?: string;
  miniprogram_notice: miniMsgContentProps;
  enable_id_trans?: number;
  enable_duplicate_check?: number;
  duplicate_check_interval?: number;
}

export interface miniMsgContentProps {
  appid?: string;
  page?: string;
  title: string;
  description?: string;
  emphasis_first_item?: boolean;
  content_item: Array<keyValueProps>;
}

export interface keyValueProps {
  key: string;
  value: string;
}

export interface readerConfigProps {
  readerAppId: string;
}
